import React from "react";

import Home from '../pages/home/Index'
import My from '../pages/my/Index'
import Login from '../pages/login/Index'
import Layout from '../pages/layout/Index'

const router=[
    {
        path:'/login',
        element:<Login></Login>
    },
    {
        path:'/',
        element:<Layout></Layout>,
        children:[
            {
                path:'/',
                element:<Home></Home>
            },
            {
                path:'/my',
                element:<My></My>
            }
        ]
    }
]
export default router


